package ru.driveclickbank.sspservice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import ru.driveclickbank.sspservice.service.SspConnectionService;

@RestController
public class SspController {
	private final SspConnectionService sspConnectionService;

	@Autowired
	public SspController(SspConnectionService sspConnectionService) {
		this.sspConnectionService = sspConnectionService;
	}

	@GetMapping("/run")
	public void runSspConnection() {
		sspConnectionService.run();
	}

}
